
import Platform = require('./Platform');
export default class WebAndroidPlatform extends Platform{

    init( bg) { 
     this.bg=bg;
        this.params = {
            devid: android.getDevid(), devtype: android.getDevtype(),
            appid: android.getAppid(),
            appver: android.getAppver(), token: android.getToken(),
            trainid:android.getTrainid()
        };
    }

    exchangeStar() {
        android.exchangeStar();
    }

    tokenExpire() {
        android.tokenExpire();
    }

    isFullScreen() {
        return android.isFullScreen();
    }

    requestErr() {
        android.requestErr();
    }

    loadSuccess() {
        android.loadSuccess();
    }

    loadFail() {
        android.loadFail();
    }

    enableBGM(): boolean {
        return android.enableBGM();
    }

    enableSound(): boolean {
        return android.enableSound();
    }

    exit() {
        android.exit();
     }

}